package day06;

import java.util.Arrays;

public class txt16 {
    public static void main(String[] args) {
        int[]a={(int)(Math.random()*100),(int)(Math.random()*100)};
        System.out.println(Arrays.toString( a));
        String b="没有找到小于50的元素";
        for (int i = 0; i < a.length; i++) {
            if(50>=a[i]){
                b="";
                System.out.println("所在位置是"+i+"小于50的元素是"+a[i]);
            }
        }
        System.out.println(b);
    }
}
